package com.woniu.api;

import com.woniu.form.AdminForm;
import com.woniu.form.MessageForm;
import com.woniuxy.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author 胡八一
 * @date 2021/05/24 14:39
 */
@FeignClient(value = "boss",contextId = "rent")
public interface MessageApi {
    //后台消息表-新增消息
    @PostMapping("/addMessage")
    public Result addMessage(@RequestBody MessageForm messageForm);
    //后台消息表-审核消息
    @PutMapping("/updateMessage")
    public Result updateMessage(@RequestParam("messageId") Integer messageId,@RequestParam("examine")String examine);
    //后台消息表-查询消息
    @GetMapping("/getMessage")
    public Result getMessage(String examine);
}
